home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / T-Z / TestStack.cpt / My XCMDs & XFCNs next >
Text File  |  1989-02-26  |  3KB  |  80 lines

  1.         My XCMDs & XFCNs
  2.  
  3.         Copyright © 1988 by Romeo Blas Mariano
  4.  
  5.  
  6. UpdateScreen XCMD 4300 
  7.     PARAMETERS:
  8.         1) none
  9.     ACTION:
  10.         1) Updates the card window by executing a “go to this card”
  11.  
  12. LineToCircle XCMD 4301 
  13.     PARAMETERS:
  14.         1) horizontal coordinates of start point 
  15.         2) vertical coordinates of start point
  16.         3) horizontal coordinates of end point
  17.         4) vertical coordinates of end point
  18.     ACTION:
  19.         1) Draws a line from start point to end point then draws a circle at end point.
  20.  
  21. ButtonPICT XCMD 4302 
  22.     PARAMETERS:
  23.         1) The name of a PICT resource.
  24.          2) The abbreviated name of the button.
  25.     ACTION:
  26.         1) Displays the PICT resource centered and cropped to the rect of the button.
  27.  
  28. FlashRegion  XCMD 4306
  29.     PARAMETERS:
  30.         1) “REGNResourceNameSource”
  31.         2) FlashCount (the number of times to flash the region, default = 3)
  32.         3) Delay (the delay in ticks between each flash, default = 10)
  33.     ACTION:
  34.         1) Searchs only the current stack for the REGN.
  35.         2) If the region exists, then inverts the region's contents flashCount pairs of times.
  36.  
  37. NewRegion XFCN 4308 
  38.     PARAMETERS:
  39.         1) none
  40.     ACTION:
  41.         1) Allows the user to trace the boundary of a region.
  42.         2) Saves the region as a named resource of type "REGN" in the current stack.
  43.         3) Returns the name of the region.
  44.  
  45. ClickInRegion XFCN 4309 
  46.     PARAMETERS:
  47.         1) "REGNResourceName"
  48.     ACTION:
  49.         1) Searches only the current stack for the specified region.
  50.         2) If the region is found and the click was within the region, then "true" is returned.  If the region is found and the click wasn't within the region,  then "false" is returned. If the region is not found then the empty string is returned.
  51.  
  52. MoveDialog XCMD 4310 
  53.     PARAMETERS:
  54.         1) "DialogName"
  55.     ACTION:
  56.         1) Loads the "Ask" DLOG resource.
  57.         2)  moves the top-left coordinates of the dialog to the global coordinates corresponding to the local coordinates contained in PointContainer.
  58.     NOTES:
  59.         1/18/88: Unfortunately, HyperCard centers the dialog on the screen.Therefore, changing theDialog's horizontal coordinates do not have any effect. The dialog ends up only moving vertically when this XCMD is used.
  60.  
  61. GetClickedRegions XCMD 4311
  62.     PARAMETERS:
  63.         1) "REGNListContainerName"
  64.         2) optional "OutputContainerName" (default is “it”)
  65.     ACTION:
  66.         1) If the clickLoc was in any of the regions (listed on separate lines in the REGNListContainer), then the names of the regions containing the clickLoc are put into the output container. Else the empty string is put into the output container. 
  67.  
  68. GetRegionNames XCMD 4312 
  69.     PARAMETERS:
  70.         1) optional "containerName" (default is “it”)
  71.     ACTION:
  72.         1) Searches the current stack for named REGN resources.
  73.         2) If any exist, then their names are put into the specified container. Else the empty string is put into the container.
  74.  
  75. LineContent  XFCN 4313 
  76.     PARAMETERS:
  77.         1) optional "AbbrevNameOfField" (default is "abbrev name of the target")
  78.     ACTION:
  79.         1) Returns the contents of the line clicked on. Else it returns empty.
  80.